package com.ruoyi.business.service;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.dto.PaymentDTO;
import com.ruoyi.common.core.domain.dto.RefundDTO;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @Author itmei
 * @Date 2024/5/18 16:59
 * @description: 富友支付
 * @Title: FuiouNotifyService
 * @Package com.ruoyi.business.service
 */
public interface FuiouNotifyService {

    /**
     * 回调
     * @param params
     * @return
     */
    String handleNotify(Map<String, String> params);

    /**
     * 富友支付(预下单)
     * @param paymentDTO
     * @param payAmount
     * @param clientIP
     * @param openid
     * @return
     */
    AjaxResult fuYouPay(PaymentDTO paymentDTO, BigDecimal payAmount, String clientIP, String openid);


    /**
     * 退款
     *
     * @param refundDTO
     * @return
     */
    String refund(RefundDTO refundDTO);

}
